using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Exhibition.Models;

namespace Exhibition.Controllers
{
    public class BlockFunctionsController : Controller
    {
        public ActionResult ForEach()
        {
            ViewData["numbers"] = Enumerable.Range(1, 10);

            var widgets = new List<Widget>();
            widgets.Add(new Widget { Description = "First", Details = new List<string> { "Purple", "Round" } });
            widgets.Add(new Widget { Description = "Second", Details = new List<string> { "Green", "Blunt", "Soft" } });
            widgets.Add(new Widget { Description = "Third", Details = new List<string> { "Smooth", "Heavy" } });
            widgets.Add(new Widget { Description = "Fourth", Details = new List<string> { "Massive", "Dense", "Dull" } });

            return View(widgets);
        }

        public ActionResult Literal()
        {
            return View();
        }

        public ActionResult Strip()
        {
            return View();
        }

        public ActionResult Capture()
        {
            return View();
        }
    }
}
